window.GorgiasChat || (window.GorgiasChat = function() {
    return {
        init: function(e, n) {
            if (!{
                    "conversationColor": "#ffa4bb",
                    "isDeactivated": false,
                    "mainColor": "#ffa4bb",
                    "smooch": {
                        "appId": "5bcf73ac61a2e90022434b1e",
                        "avatarTeamPictureUrl": "https://config.gorgias.io/production/qgaXzxaPYo7vDWOp/smooch_inside/avatar_team_pictures/dY4gQxze407Wnv8l/3ffda6ca-080d-487d-a726-2578e3388dc8.png",
                        "avatarType": "team-picture",
                        "customText": {
                            "actionPostbackError": "An error occurred while processing your action. Please try again.",
                            "backLabelBackInAMinute": "Back in 1 minute",
                            "backLabelBackInAnHour": "Back in 1 hour",
                            "backLabelBackInDays": "Back in {value} days",
                            "backLabelBackInHours": "Back in {value} hours",
                            "backLabelBackInMinutes": "Back in {value} minutes",
                            "backLabelBackTomorrow": "Back tomorrow",
                            "campaignClickToReply": "Click to reply",
                            "clickToRetry": "Message not delivered. Click to retry.",
                            "conversationTimestampHeaderFormat": "MMMM D",
                            "emailCaptureInputLabel": "Get notified by email",
                            "emailCaptureOfflineThanksText": "Thanks {email}! We'll get back to you shortly.",
                            "emailCaptureOfflineTriggerText": "We're away, leave us your email and we'll respond shortly.",
                            "emailCaptureOnlineThanksText": "Thanks! We'll email you at {email} if you leave.",
                            "emailCaptureOnlineTriggerText": "Leave us your email and we will reply soon.",
                            "emailCapturePlaceholder": "your@email.com",
                            "emailCaptureRequiredEmailPlaceholder": "Leave your email",
                            "emailCaptureRequiredMessagePlaceholder": "Write your message",
                            "fetchHistory": "Load more",
                            "fetchingHistory": "Retrieving history...",
                            "headerText": "Sparkle In Pink Chat",
                            "inputPlaceholder": "Type a message...",
                            "introductionText": "What can we help you with?",
                            "invalidFileError": "Only images are supported. Choose a file with a supported extension (jpg, jpeg, png, gif, or bmp).",
                            "messageDelivered": "Delivered",
                            "messageError": "An error occurred while sending your message. Please try again.",
                            "messageIndicatorTitlePlural": "({count}) New messages",
                            "messageIndicatorTitleSingular": "({count}) New message",
                            "messageRelativeTimeDay": "{value}d ago",
                            "messageRelativeTimeHour": "{value}h ago",
                            "messageRelativeTimeJustNow": "Just now",
                            "messageRelativeTimeMinute": "{value}m ago",
                            "messageSending": "Sending...",
                            "messageTimestampFormat": "h:mm A",
                            "offlineIntroductionText": "We're away!  Please check back soon :)",
                            "poweredByGorgias": "Powered by Gorgias",
                            "send": "Send",
                            "tapToRetry": "Message not delivered. Tap to retry.",
                            "unsupportedActionType": "Unsupported action type.",
                            "unsupportedMessageType": "Unsupported message type."
                        },
                        "emailCaptureEnforcement": "required-outside-business-hours",
                        "locale": "en-US",
                        "properties": {
                            "current_page": window.location.href
                        }
                    }
                }.isDeactivated) {
                var t = function e(n, t) {
                    var o = Object.keys(t);
                    return n || (n = {}), o.forEach(function(o) {
                        n[o] ? "object" == typeof t[o] && (n[o] = e(n[o], t[o])) : n[o] = t[o]
                    }), n
                }(e, {
                    "conversationColor": "#ffa4bb",
                    "isDeactivated": false,
                    "mainColor": "#ffa4bb",
                    "smooch": {
                        "appId": "5bcf73ac61a2e90022434b1e",
                        "avatarTeamPictureUrl": "https://config.gorgias.io/production/qgaXzxaPYo7vDWOp/smooch_inside/avatar_team_pictures/dY4gQxze407Wnv8l/3ffda6ca-080d-487d-a726-2578e3388dc8.png",
                        "avatarType": "team-picture",
                        "customText": {
                            "actionPostbackError": "An error occurred while processing your action. Please try again.",
                            "backLabelBackInAMinute": "Back in 1 minute",
                            "backLabelBackInAnHour": "Back in 1 hour",
                            "backLabelBackInDays": "Back in {value} days",
                            "backLabelBackInHours": "Back in {value} hours",
                            "backLabelBackInMinutes": "Back in {value} minutes",
                            "backLabelBackTomorrow": "Back tomorrow",
                            "campaignClickToReply": "Click to reply",
                            "clickToRetry": "Message not delivered. Click to retry.",
                            "conversationTimestampHeaderFormat": "MMMM D",
                            "emailCaptureInputLabel": "Get notified by email",
                            "emailCaptureOfflineThanksText": "Thanks {email}! We'll get back to you shortly.",
                            "emailCaptureOfflineTriggerText": "We're away, leave us your email and we'll respond shortly.",
                            "emailCaptureOnlineThanksText": "Thanks! We'll email you at {email} if you leave.",
                            "emailCaptureOnlineTriggerText": "Leave us your email and we will reply soon.",
                            "emailCapturePlaceholder": "your@email.com",
                            "emailCaptureRequiredEmailPlaceholder": "Leave your email",
                            "emailCaptureRequiredMessagePlaceholder": "Write your message",
                            "fetchHistory": "Load more",
                            "fetchingHistory": "Retrieving history...",
                            "headerText": "Sparkle In Pink Chat",
                            "inputPlaceholder": "Type a message...",
                            "introductionText": "What can we help you with?",
                            "invalidFileError": "Only images are supported. Choose a file with a supported extension (jpg, jpeg, png, gif, or bmp).",
                            "messageDelivered": "Delivered",
                            "messageError": "An error occurred while sending your message. Please try again.",
                            "messageIndicatorTitlePlural": "({count}) New messages",
                            "messageIndicatorTitleSingular": "({count}) New message",
                            "messageRelativeTimeDay": "{value}d ago",
                            "messageRelativeTimeHour": "{value}h ago",
                            "messageRelativeTimeJustNow": "Just now",
                            "messageRelativeTimeMinute": "{value}m ago",
                            "messageSending": "Sending...",
                            "messageTimestampFormat": "h:mm A",
                            "offlineIntroductionText": "We're away!  Please check back soon :)",
                            "poweredByGorgias": "Powered by Gorgias",
                            "send": "Send",
                            "tapToRetry": "Message not delivered. Tap to retry.",
                            "unsupportedActionType": "Unsupported action type.",
                            "unsupportedMessageType": "Unsupported message type."
                        },
                        "emailCaptureEnforcement": "required-outside-business-hours",
                        "locale": "en-US",
                        "properties": {
                            "current_page": window.location.href
                        }
                    }
                });
                t.smooch.displayUsers = [{
                    "avatar_url": null,
                    "name": "Di"
                }, {
                    "avatar_url": null,
                    "name": "Mindi"
                }, {
                    "avatar_url": null,
                    "name": "Julie"
                }], t.smooch.businessHours = {
                    "business_hours": [{
                        "days": "5",
                        "from_time": "06:00",
                        "to_time": "12:00"
                    }, {
                        "days": "5",
                        "from_time": "12:30",
                        "to_time": "18:30"
                    }, {
                        "days": "5",
                        "from_time": "18:45",
                        "to_time": "21:00"
                    }, {
                        "days": "4",
                        "from_time": "06:00",
                        "to_time": "12:00"
                    }, {
                        "days": "4",
                        "from_time": "12:30",
                        "to_time": "18:30"
                    }, {
                        "days": "4",
                        "from_time": "18:45",
                        "to_time": "21:00"
                    }, {
                        "days": "2",
                        "from_time": "06:00",
                        "to_time": "12:00"
                    }, {
                        "days": "2",
                        "from_time": "12:30",
                        "to_time": "18:30"
                    }, {
                        "days": "2",
                        "from_time": "18:45",
                        "to_time": "21:00"
                    }, {
                        "days": "3",
                        "from_time": "06:00",
                        "to_time": "12:00"
                    }, {
                        "days": "3",
                        "from_time": "12:30",
                        "to_time": "18:30"
                    }, {
                        "days": "3",
                        "from_time": "18:45",
                        "to_time": "21:00"
                    }, {
                        "days": "1",
                        "from_time": "06:00",
                        "to_time": "12:00"
                    }, {
                        "days": "1",
                        "from_time": "12:30",
                        "to_time": "18:30"
                    }, {
                        "days": "1",
                        "from_time": "18:45",
                        "to_time": "21:00"
                    }],
                    "timezone": "America/Denver"
                }, t.smooch.areUsersAvailable = false, t.smooch.campaigns = [{
                    "id": "d350e70a-6de0-4f29-8cb7-786fe6c3002d",
                    "message": {
                        "author": {},
                        "html": "<div>Hey there!</div><br><div>Welcome to Sparkle In Pink!  Let me know if you have any questions \ud83d\ude0a</div>",
                        "text": "Hey there!\n\nWelcome to Sparkle In Pink!  Let me know if you have any questions \ud83d\ude0a"
                    },
                    "name": "Home Page Welcome",
                    "triggers": [{
                        "key": "current_url",
                        "operator": "eq",
                        "value": "https://sparkleinpink.com/"
                    }, {
                        "key": "time_spent_on_page",
                        "operator": "gt",
                        "value": 20
                    }]
                }, {
                    "id": "81eed789-99c9-42d4-a509-832b5fb31df2",
                    "message": {
                        "author": {},
                        "html": "<div>Is there anything I can help you with?   If you need anything, I am here to help! \ud83d\ude18</div>",
                        "text": "Is there anything I can help you with?   If you need anything, I am here to help! \ud83d\ude18"
                    },
                    "name": "Collection Pages",
                    "triggers": [{
                        "key": "current_url",
                        "operator": "contains",
                        "value": "/collections"
                    }, {
                        "key": "current_url",
                        "operator": "notContains",
                        "value": "/products"
                    }, {
                        "key": "time_spent_on_page",
                        "operator": "gt",
                        "value": 20
                    }]
                }, {
                    "id": "742de600-ed6e-487b-8548-057514401d07",
                    "message": {
                        "author": {},
                        "html": "<div>Have questions about this product? \ud83e\udd17</div><br><div>I am here to help! \ud83d\ude04</div>",
                        "text": "Have questions about this product? \ud83e\udd17\n\nI am here to help! \ud83d\ude04"
                    },
                    "name": "Product Pages",
                    "triggers": [{
                        "key": "current_url",
                        "operator": "contains",
                        "value": "/products"
                    }, {
                        "key": "time_spent_on_page",
                        "operator": "gt",
                        "value": 20
                    }]
                }, {
                    "id": "96e4bef5-88e1-4114-9574-3689d855a1a2",
                    "message": {
                        "author": {},
                        "html": "<div>Any questions you have before checking out? \ud83d\ude04</div><br><div>Let me know!  I am here to help \ud83d\ude18</div>",
                        "text": "Any questions you have before checking out? \ud83d\ude04\n\nLet me know!  I am here to help \ud83d\ude18"
                    },
                    "name": "Cart Page",
                    "triggers": [{
                        "key": "current_url",
                        "operator": "eq",
                        "value": "https://sparkleinpink.com/cart"
                    }, {
                        "key": "time_spent_on_page",
                        "operator": "gt",
                        "value": 12
                    }]
                }], t.smooch.baseQuickReplies = [], t.smooch.userId && !t.smooch.jwt && delete t.smooch.userId;
                var o, r, a = {},
                    i = {},
                    c = ["appId", "userId", "jwt", "customColors", "customText", "displayUsers", "isChatOnline", "campaigns", "baseQuickReplies", "areUsersAvailable", "businessHours", "locale", "emailCaptureEnforcement", "avatarType", "avatarTeamPictureUrl"];
                Object.keys(t.smooch).forEach(function(e) {
                        c.includes(e) ? a[e] = t.smooch[e] : i[e] = t.smooch[e]
                    }), o = document.createElement("meta"), r = document.head || document.createElement("head"), o.setAttribute("name", "viewport"), o.setAttribute("content", "width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"), r.appendChild(o), document.head || document.documentElement.insertBefore(r, document.documentElement.firstChild),
                    function(e, n) {
                        ! function(e, n, t, o) {
                            var r, a, i, c = [],
                                s = [];
                            e[t] = {
                                init: function() {
                                    r = arguments;
                                    var e = {
                                        then: function(n) {
                                            return s.push({
                                                type: "t",
                                                next: n
                                            }), e
                                        },
                                        catch: function(n) {
                                            return s.push({
                                                type: "c",
                                                next: n
                                            }), e
                                        }
                                    };
                                    return e
                                },
                                on: function() {
                                    c.push(arguments)
                                },
                                render: function() {
                                    a = arguments
                                },
                                destroy: function() {
                                    i = arguments
                                }
                            }, e.__onWebMessengerHostReady__ = function(n) {
                                if (delete e.__onWebMessengerHostReady__, e[t] = n, r)
                                    for (var o = n.init.apply(n, r), u = 0; u < s.length; u++) {
                                        var m = s[u];
                                        o = "t" === m.type ? o.then(m.next) : o.catch(m.next)
                                    }
                                for (a && n.render.apply(n, a), i && n.destroy.apply(n, i), u = 0; u < c.length; u++) n.on.apply(n, c[u])
                            };
                            var u = new XMLHttpRequest;
                            u.addEventListener("load", function() {
                                try {
                                    var e;
                                    if ((e = "string" == typeof this.response ? JSON.parse(this.response) : this.response).url) {
                                        var t = n.getElementsByTagName("script")[0],
                                            o = n.createElement("script");
                                        o.async = !0, o.src = e.url, t.parentNode.insertBefore(o, t)
                                    }
                                } catch (e) {}
                            }), u.open("GET", "https://assets.gorgias.io/chat/2cdae616d2b46329a5de8ecdf39778b8076e6d5a/loader.json", !0), u.responseType = "json", u.send()
                        }(window, document, "Smooch"), n()
                    }(0, function() {
                        Smooch.init(a).then(function() {
                            ! function e(n) {
                                var t = document.getElementById("gorgias-web-messenger-container");
                                t || (t = document.getElementById("web-messenger-container")), t ? n(null, t) : setTimeout(function() {
                                    e(n)
                                }, 500)
                            }(function(e, o) {
                                ! function(e) {
                                    var n = "#mount #messenger-button {background:" + e.mainColor + " !important;}#mount #container .base-quick-reply {color:" + e.mainColor + " !important; border-color:" + e.mainColor + " !important;}#mount #container .right-row .msg {background-color:" + e.conversationColor + " !important;}#mount #container .right-row .msg-image {background-color: transparent !important;}#mount #container .logo {margin-left: 0 !important;text-align: center;}#mount #container .app-icon {background-repeat:no-repeat;background-size:cover}#mount #container .app-icon-default {border-radius: 0 !important;}#mount #container #header .intro-section.online {background-color:" + e.mainColor + " !important;}#mount #container #header .intro-section.online .user-avatars-wrapper {border-color:" + e.mainColor + " !important;}#mount #container #header .intro-section.online .avatar-team-picture-wrapper {border-color:" + e.mainColor + " !important;}#mount #container .gorgias-email-capture-required-form button {background-color:" + e.conversationColor + " !important;}#mount #container .gorgias-email-capture-input-card button {background-color:" + e.conversationColor + " !important;}#mount #container #footer .input-wrapper .send.active {color:" + e.mainColor + " !important;}",
                                        t = document.getElementById("gorgias-web-messenger-container");
                                    t || (t = document.getElementById("web-messenger-container"));
                                    var o = document.createElement("style");
                                    o.textContent = n, t.contentWindow.document.getElementsByTagName("head")[0].appendChild(o)
                                }(t),
                                function(e, n) {
                                    var t = n.querySelector(".app-icon");
                                    t && e.icon && (t.outerHTML = '<div style="background-image: url(' + e.icon + ')" class="app-icon" />')
                                }(t, o), n && n(), Smooch.updateUser(i)
                            })
                        })
                    })
            }
        }
    }
}(), window.GorgiasChat.init(window.gorgiasChatParameters, window.gorgiasChatCallback));